/*
day439 
2020.11.9 
*/

#include<iostream>
#include<map>
#include<vector>
#include<cstring>
using namespace std;

class Solution {
public:
    bool CheckPermutation(string s1, string s2) {
		map<char,int> m;
		for(int i=0;i<s1.size();++i)
		{
			m[s1[i]]++;
		}
		
		for(int i=0;i<s2.size();++i)
		{
			
			if(m[s2[i]]==0)
			{
				return false;
			}
			m[s2[i]]--;
		}
		
		return true;
    }
};

int main()
{
	return 0;
 } 
